<h1>Movies Found</h1>
<p>Search IMDB's movies and add them to the internal database</p>
<p><strong>Please be aware that adding multiple movies may take a while as the data must be retrieved directly from IMDB.</strong></p>

<div class="search_bar">
	<form method="post" action="index.php" onsubmit="search_imdb(document.getElementById('title').value); return false;">
	<input type="hidden" name="what" value="movie" />
	<input type="hidden" name="do" value="add" />
	<input type="text" name="title" value="{$content.title}" id="title" />
	<input id="search_btn" type="submit" value="Search IMDB Titles" />
	<span id="loading_search"><img src="templates/{$config.smarty_template}/images/loading.gif" alt="loading" /> Loading</span>
	</form>

	<div id="search_contain">
		<ul id="search_results"></ul>
		<div id="search_select_pane">
			<ul id="search_selected"></ul>
			<div>
				<div style="float: right;">
					<form method="post" action="index.php" id="frm_imdb_results" onsubmit="return do_submit();" onreset="remove_movie('*');">
					<input type="hidden" name="what" value="movie" />
					<input type="hidden" name="do" value="process_add" />
					<select name="add">
						<option value=""></option>
						<option value="mymovies">Add to my Collection</option>
						<option value="wishlist">Add to my wishlist</option>
					</select>
					<input type="submit" value="Add selected movies &raquo;" />
					</form>
				</div>
				<input type="button" value="Clear" onclick="remove_movie('*');" />
			</div>
		</div>
	</div>
</div>

<script type="text/javascript" language="Javascript">search_imdb('{$content.title|escape}');</script>